/*
 * Icon.java  0.4.0 / Oct 26, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
package com.cute4j.swing;

import com.cute4j.swing.graphics.Graphics;

/**
 * Icon Interface.
 *
 * @author Slobodan Vrkacevic
 * @version 0.4.0
 */
public interface Icon {

  /**
   * Draws the icon at the specified location.
   *
   * @param component the component
   * @param g the graphics
   * @param x the icon's x coordinate
   * @param y the icon's y coordinate
   */
  public void paintIcon(Component component, Graphics g, int x, int y);

  /**
   * Returns the icon's width.
   *
   * @return the icon's width
   */
  public int getIconWidth();

  /**
   * Returns the icon's height.
   *
   * @return the icon's height
   */
  public int getIconHeight();

}
